Release 10.1A: OpenEdge Getting Started:
Object-oriented Programming
SUPER system reference
SUPERis a system reference available at run time within the current instance of a subclass to invoke a method implemented in a super class. A common use for this system reference is to invoke a super class method that the subclass has overridden. For more information on the syntax and use of this system reference, see the "Calling a super class method" section.The only way a super class's version of an overridden method can be invoked is by referencing it with the
Notes: UnlikeSUPERsystem reference and method name within a subclass. TheSUPERsystem reference can only be used within a subclass to invoke a super class method in the class hierarchy of that subclass. There is no way to directly invoke a super class version of an overridden method from outside of the class hierarchy.THIS-OBJECT, theSUPERsystem reference is not an object reference, and it can only be used to invoke a super class method from a subclass in the same class hierarchy. You cannot useSUPER, by itself for example, to pass an object reference to the current instance's super class as a parameter.
TheSUPERsystem reference is not the same as theSUPERstatement. For more information on theSUPERstatement, see the "Constructing an object" section.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |